package com.rui.cn.feignservice.fallback;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.rui.cn.entity.system.SysLog;
import com.rui.cn.feignservice.SysLogService;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class FallbackFactorySysLog  implements FallbackFactory<SysLogService> {
    @Override
    public SysLogService create(Throwable throwable) {
        return new SysLogService() {
            @Override
            public void insertLog(SysLog loggerEntity) {

            }

            @Override
            public List<SysLog> logList(Pagination pagination) {
                return null;
            }
        };
    }
}
